package com.ptu.spzx.domain.Stu;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author YT
 * @since 2024-01-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@NoArgsConstructor
@AllArgsConstructor
public class StuMessage implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 通知编号
     */
    private Long noticeId;

    /**
     * 学生编号
     */
    private String stuId;

    /**
     * 是否阅读
     */
    private Boolean isRead;


    public StuMessage(Long noticeId, String stuId) {
        this.noticeId = noticeId;
        this.stuId = stuId;
    }
}
